
<SCRIPT type="text/javascript">
	function pannelMgr(id){
		$("#main_pannel_ul>li").attr("class","nav_tapIthems");
		$("#mainDiv>div").css("display","none");
		$("#"+id+"_div").css("display","block");
		$("#"+id+"_li").addClass("cur");
		
	}
	
	var cubeNodeSetting = {
			edit: {
				enable: true,
				showRemoveBtn: false,
				showRenameBtn: false
			},
			data: {
				keep: {
							parent: true,
							leaf: true
						},
				simpleData: {
					enable: true
				}
			},
			view: {
				showLine: false,
				nameIsHTML: true
			}
		};
	
	
	var cubeNode = [
			<#if cube??>
			{ id:1, pId:0, name:"${cube.name!''}", open:true}
				<#list cube.dimension as dim>
					,{ id:${1000+dim_index}, pId:1, name:"${dim.name!''}" , open:true}
					<#if dim.cubeLevel??>
						<#list dim.cubeLevel as level>
							,{ id:${(1000+dim_index)*1000+level_index}, pId:${1000+dim_index}, type:"dimensions",lid:"${level.id!''}" , dimid:"${dim.id!''}", name:"${level.name!''}",icon:"/assets/images/dimensions.png"}
						</#list>
					</#if>
					<#if dim.dim?? && dim.dim.cubeLevel??>
						<#list dim.dim.cubeLevel as level>
							,{ id:${(1000+dim_index)*1000+level_index},pId:${1000+dim_index}, type:"dimensions",lid:"${level.id!''}" , name:"${level.name!''}",icon:"/assets/images/dimensions.png"}
						</#list>
					</#if>
				</#list>
			
				<#if cube.measure?size gt 0>
				,{ id:12, pId:1, name:"指标", open:true}
				<#list cube.measure as measure>
				,{ id:${120000+measure_index}, pId:12, name:"${measure.name!''}" , type:"measure" ,sname:"${measure.name!''}", lid:"${measure.id!''}",icon:""}
				</#list>
				</#if>
			</#if>
		];
	
	$(document).ready(function(){
		
       var cubeNodeZtree = $.fn.zTree.init($(document.getElementById("zTree_adminLIst")), cubeNodeSetting, cubeNode);
	});
</SCRIPT>

<div class="artCon">
	<div class="middleArt" style="width:750px">
		<div class="artMain">
			<div class="rs_layout_center">
				<div class="rs_layout">
				
					<div class="rs_layout_top">
						<ul id="main_pannel_ul" class="nav_tapWrap">							
							<!-- 1读/2编辑/3设置策略/4设计/5执行/6遍历 -->
							<li id="proper_li" onclick="pannelMgr('proper')" class="nav_tapIthems cur">基本信息</li>
							<li id="auth_li" onclick="pannelMgr('auth')" class="nav_tapIthems">授权访问用户</li>
							<li id="member_li" onclick="pannelMgr('member')" class="nav_tapIthems">维度&指标</li>
						</ul>
					</div>
					<div id="mainDiv" class="rs_layout_center">
							<div id="proper_div" style="padding:10px;">
								<table class="data_table_1">
									<tr>
										<th>报表名称：</th>
										<td>${report.name!''}</td>
										<th>创建时间：</th>
										<td>${report.createtime?string("yyyy-MM-dd HH:mm:ss")}</td>
									</tr>
									<tr>
										<th>创建人：</th>
										<td><a href="#" class="tblinks">${report.username!''}（${report.useremail!''}）</a></td>
										<th>修改时间：</th>
										<td>${report.updatetime?string("yyyy-MM-dd HH:mm:ss")}</td>
									</tr>
									<tr>
										<th>类型：</th>
										<td>
											报表
										</td>
										<th>报表位置：</th>
										<td>${report.reportpackage!''}</td>
									</tr>
									<tr>
										<th>联系人：</th>
										<td>${report.username!''}</td>
										<th>代码：</th>
										<td>${report.title!''}</td>
									</tr>
									
								</table>
							</div>
							
							<div id="auth_div" style="padding:10px;min-height:130px; display: none;">
								<p>指定报表或目录的访问权限。默认情况下，报表或目录从上级目录继承访问权限。</p>
								<div class="check_top">
									  <p></p>
								</div>
								<div style="width: 100%;height:280px;">
								<div class="tableScrollWrap" style="width:100%;overflow-x: hidden;">
									<div class="check_box_con" style="width:100%;overflow-x:hidden;margin-left:0px;" id="perdiv">
										<#include "reportauthorize.html"/>
									</div>
								</div>
								</div>
							</div>
							
							<div id="member_div" style="padding:10px;min-height:130px; display: none;">
								<div class="check_top">
									  <p></p>
								</div>
								<div style="width: 100%;height:280px;">
								<div class="tableScrollWrap" style="width:100%;overflow-x: hidden;">
									<div class="check_box_con" style="width:100%;overflow-x:hidden;margin-left:0px;" id="perdiv">
										<div class="ztree" id="zTree_adminLIst"></div>
									</div>
								</div>
								</div>
							</div>
							
					</div>
					
				</div>
			</div>
			<div class="bottomBg">
				<div class="btnWrap">
					<input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="关闭"/>
				</div>
			</div>
		</div>
	 </div>
</div>